package cn.wsalix.order.form;

import javax.validation.constraints.NotNull;

import lombok.Data;
import lombok.EqualsAndHashCode;
import cn.anlaser.form.SimpleForm;
import cn.wsalix.order.entity.Order;
import cn.wsalix.order.status.OrderEnum;
import cn.wsalix.query.OrderQuery;
import cn.wsalix.shop.entity.Price;
import cn.wsalix.shop.entity.Product;
import cn.wsalix.shop.status.PayEnum;
import cn.wsalix.status.TuanEnum;
import cn.wsalix.type.OrderTypeEnum;
import cn.wsalix.type.PayTypeEnum;

@Data
@EqualsAndHashCode(callSuper = false)
public class OrderForm extends SimpleForm {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5351116777960941595L;
	@NotNull
	private Long productId;//商品ID
	private int num;
	private Long orderId;//订单ID 团购需要订单号
	private Long userId;
	private Long shopId;
	private String tradeNo;// 订单号
	private String title;// 标题
	private OrderEnum status;//订单状态
	private String remark;//订单描述
	private OrderQuery orderQuery;
	
	private Long priceId;//商品定价ID
	
	private OrderTypeEnum orderType;
	private Integer amount;
	private Integer postfree;
	
	private PayTypeEnum payType;
	private PayEnum pay;
	//
	private Price price;
	private Product product;
	private Order order;
	private boolean tuan;
	private TuanEnum tuanStatus;
	private int tuanNum;
	private boolean master;
	
	private boolean discount;
	
}